<?php
if (!isset($_POST['id'])){
	die();
}

require_once('db/db.php');
$db=new DB;

$id=$_POST['id'];
$db->query("update `product` set `click_counts`=`click_counts`+1 where id=$id");

echo 'OK';

?>
